package com.verify.emun;

public enum STANDARDT_POST_TYPE {
    FRONTLINE_OPERATION("一线生产操作类"),
    MANAGEMENT("管理类"),
    PROFESSIONAL_TECHNICAL("专业技术类"),
    AUXILIARY_SERVICE("辅助与服务类");

    private final String name;

    // 构造方法，用于初始化name属性
    STANDARDT_POST_TYPE(String name) {
        this.name = name;
    }

    // 获取name属性的值
    public String getName() {
        return name;
    }

    public static boolean contains(String value) {
        for (STANDARDT_POST_TYPE org : STANDARDT_POST_TYPE.values()) {
            if (org.getName().equals(value)) {
                return true;
            }
        }
        return false;
    }
}
